﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package validation.util {
    import flash.utils.*;
    import validation.*;

    public class ExperimentValidationUtil implements IValidationUtilClass {

        protected var m_validators:Dictionary;

        public function ExperimentValidationUtil(){
            this.loadValidators();
        }
        public function getValidationCallback(_arg1:String):Function{
            return (this.m_validators[_arg1]);
        }
        protected function loadValidators():void{
            this.m_validators = new Dictionary();
            this.m_validators["isVariantGreaterThan"] = function (_arg1:Object):Boolean{
                var _local2:Number = Number(_arg1.variant);
                var _local3:String = _arg1.experiment;
                var _local4:int = Global.experimentManager.getVariant(_local3);
                return ((_local4 > _local2));
            };
        }

    }
}//package validation.util 
